import Layout from '@/layout/index'

const router = [
  {
    path: '/panelContent',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'list/:panelId(\\d+)',
        name: 'PanelContentList',
        component: () => import('@/views/marketing/panelContent/PanelContentList'),
        meta: { title: '板块内容' }
      }
    ]
  },
  {
    path: '/flashSaleActivity',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'flashSaleSessionList',
        name: 'FlashSaleSessionList',
        component: () => import('@/views/marketing/flashSaleActivity/FlashSaleSessionList'),
        meta: { title: '活动场次' }
      },
      {
        path: 'flashSaleGoodsList',
        name: 'FlashSaleGoodsList',
        component: () => import('@/views/marketing/flashSaleActivity/FlashSaleGoodsList'),
        meta: { title: '限时折扣商品' }
      }
    ]
  },
  {
    path: '/couponActivity',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'couponList',
        name: 'CouponList',
        component: () => import('@/views/marketing/couponActivity/CouponList'),
        meta: { title: '优惠券领取详情' }
      }
    ]
  }
]

export default router
